#ifndef GY_STATEBUTTON_H
#define GY_STATEBUTTON_H

#include <QWidget>
#include<QPushButton>
#include"GY_ControlLibrary_global.h"
class GY_StateButton : public QPushButton
{
    Q_OBJECT
public:
    explicit GY_StateButton(QWidget *parent = nullptr);
    ~GY_StateButton();
    void setButtonGroupValue(const int groupId);//设置组号
    int getButtonGroupValue(); //获取组号
    void setButtonState(bool stateFlag);//设置状态
    bool getButtonState(); //获取状态

protected:

private slots:
    void on_pushButton_clicked();
private:
    int butGroupId;//组号
    bool butState;//按钮状态  按下为 true 凸起为false
};

#endif // GY_STATEBUTTON_H
